xen/iommu: smmu: Advertise when the SMMU support coherent table walk
authorJulien Grall <julien.grall@linaro.org>
Mon, 2 Mar 2015 15:42:43 +0000 (15:42 +0000)
committerIan Campbell <ian.campbell@citrix.com>
Mon, 2 Mar 2015 16:42:56 +0000 (16:42 +0000)
commit080dcb781e1bc3bb22f55a9dfdecb830ccbabe88
tree1a4bedda846f3f4d6e524dc780d0c5c7a96a0805
parent3bcf563fec26378f7f4cf1e2ad0d4d5b3f341919
xen/iommu: smmu: Advertise when the SMMU support coherent table walk

When SMMU doesn't support coherent table walk, Xen may need to clean
updated PT (see commit 4c5f4cb "xen/arm: p2m: Clean cache PT when the
IOMMU doesn't support coherent walk").

If one SMMU of the platform doesn't support coherent table walk, the
feature is disabled for the whole platform. This is because device is
assigned to a domain after the page table are populated.

This could impact performance on domain which doesn't use device
passthrough. But, as the spec strongly recommends the support of this
feature for mainstream platform, I expect server will always have SMMUs
supporting coherent table walk. If not, we may need to enable this feature
per-domain.

Signed-off-by: Julien Grall <julien.grall@linaro.org>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
xen/drivers/passthrough/arm/smmu.c